package com.yricky.poetcard;

import com.yricky.jinrishici.PoetModel;
import ohos.aafwk.ability.AbilityPackage;

import java.io.File;

public class MyApplication extends AbilityPackage {
    private PoetModel poetModel;
    @Override
    public void onInitialize() {
        super.onInitialize();
    }

    public PoetModel getPoetModel() {
        if(poetModel==null)
            poetModel=PoetModel.getModel(new File(getExternalFilesDir(null),"Poet"));
        return poetModel;
    }
}
